package drexel.cs544.nap.server;

import java.util.Vector;

public class Group {
	private int _groupId = -1;
	private long _dataMode = -1;
	private long _maxDataSet = -1;
	private String _xmlLocation = "";
	private long _timeout = -1;
	private Vector<ClientNode> _clients = new Vector<ClientNode>();
	
	public Group() {
		
	}
	
	public Group(int groupId, long dataMode, long maxDataSet, String xmlLocation, long timeout)
	{
		_groupId = groupId;
		_dataMode = dataMode;
		_maxDataSet = maxDataSet;
		_xmlLocation = xmlLocation;
		_timeout = timeout;
	}

	public int getGroupID() {
		return _groupId;
	}

	public void setGroupID(int groupId) {
		_groupId = groupId;
	}

	public long getDataMode() {
		return _dataMode;
	}

	public void setDataMode(long dataMode) {
		_dataMode = dataMode;
	}

	public long getMaxDataSet() {
		return _maxDataSet;
	}

	public void setMaxDataSet(long maxDataSet) {
		_maxDataSet = maxDataSet;
	}

	public String getXmlLocation() {
		return _xmlLocation;
	}

	public void setXmlLocation(String xmlLocation) {
		_xmlLocation = xmlLocation;
	}

	public long getTimeout() {
		return _timeout;
	}

	public void setTimeout(long timeout) {
		_timeout = timeout;
	}
	
	public void addClient(ClientNode client) {
		_clients.add(client);
	}
}
